package org.jeecg.common.modules.inquiry.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.modules.doctor.vo.AssistantInfoReqVo;
import org.jeecg.common.modules.inquiry.entity.InquiryInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.common.modules.inquiry.vo.InquiryReqVo;

/**
 * @Description: inquiry_info
 * @Author: jeecg-boot
 * @Date:   2020-08-31
 * @Version: V1.0
 */
public interface InquiryInfoMapper extends BaseMapper<InquiryInfo> {
    /**
     * 查询问诊的信息
     * @param id
     * @param patientName
     * @param userName
     * @param doctorName
     * @param type
     * @param dataStart
     * @param pageSize
     * @return
     */
    List<InquiryReqVo> selectInquiryInfo(
            @Param("id") String id,
            @Param("patientName") String patientName,
            @Param("userName") String userName,
            @Param("doctorName") String doctorName,
            @Param("type") String type,
            @Param("dataStart") Integer dataStart,
            @Param("pageSize") Integer pageSize);

    /**
     * 查询的总条数
     * @param id
     * @param patientName
     * @param userName
     * @param doctorName
     * @return
     */
    int getInquiryCount(
            @Param("id") String id,
            @Param("patientName") String patientName,
            @Param("userName") String userName,
            @Param("doctorName") String doctorName,
            @Param("type") String type);

}
